package com.example.productserver.sentinel;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.example.productserver.exception.CustomException;
import com.example.productserver.model.dto.ProductIdDTO;
import com.example.productserver.model.vo.ProductInfoVO;
import com.example.productserver.result.ResultData;


public class CommonBlockHandler {

    public static ResultData<ProductInfoVO> handleException(ProductIdDTO productIdDTO , BlockException exception){
        throw new CustomException("===被异常降级啦===");
    }

}
